package com.example.everying.model.dto.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class OrderInfoEntityDto {
    @ApiModelProperty(value = "关联的活动文章ID")
    @NotNull(message = "活动ID不能为空")
    private String activityId;

    @ApiModelProperty(value = "订单金额")
    @NotNull(message = "订单金额不能为空")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "发布者ID")
    @NotNull(message = "发布者ID不能为空")
    private String publisherId;

    @ApiModelProperty(value = "接单者ID")
//    @NotNull(message = "接单者ID不能为空")
    private String acceptorId;

    @ApiModelProperty(value = "发布类型：0：正常；1：卖；2：买；")
    private Integer type;
}
